const SET_POSITON = 'SET_POSITON',
      SET_TOKEN = 'SET_TOKEN';
export default {
      // 保存当前位置
  [SET_POSITON](state, result) {
    console.log('postion')
    const position = {
      address: result.aois[0].name,
      city: result.addressComponent.city,
      citycode: result.addressComponent.citycode,
      positioninfo: result
    }
    state.position = position
    // state.position.address =position.address
    // state.position.city = position.city


    // state.position.address = result.aois[0].name
    // state.city = result.addressComponent.city
    // console.log(state.position)
  },
  [SET_TOKEN](state,token){
    state.userToken = token;
    state.isLogin = true;
  }
}